﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FisheryPlatform.Common.StaticCache
{
    public interface IStaticCache
    {
        void Set(string key, object value, DateTime absoluteExpiration);
        void Set(string key, object value, TimeSpan slidingExpirations);
        void Set(string key, object value);
        T Get<T>(string key);
        bool TryGet<T>(string key, out T value);
        void Delete(string key);
        void DeleteAll();
        string GetAllCacheKeys();
    }
}
